﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using BLL.BusinessRules;

namespace BLL
{
    public class HOADONTAM: BusinessObject
    {

        public Guid HoaDonTam { get; set; }
        public Guid MaHoaDon { get; set; }
        public string MaQuyenHoaDon { get; set; }
        public string SoHoaDon { get; set; }
        public int? STT { get; set; }
        public bool? IsUse { get; set; }
        public int? CreateBy { get; set; }
        public int? ModifiedBy { get; set; }
        public DateTime? ModifiedOn { get; set; }

        public HOADONTAM()
        {
            AddRule(new ValidateRequired("MaHoaDon"));
            AddRule(new ValidateRequired("MaQuyenHoaDon"));
            AddRule(new ValidateRequired("SoHoaDon"));
        }

        public HOADONTAM(Guid hoaDonTam, Guid maHoaDon, string maQuyenHoaDon, string soHoaDon, int? stt, bool? isUse, int? createBy, int? modifiedBy, DateTime? modifiedOn)
            : this()
        {
            HoaDonTam = hoaDonTam;
            MaHoaDon = maHoaDon;
            MaQuyenHoaDon = maQuyenHoaDon;
            SoHoaDon = soHoaDon;
            STT = stt;

        }

    }
}
